# -*- coding: utf-8 -*-
"""
 @Time    : 2021/1/14 下午5:16
 @Author  : tgy
 
"""

class MyException(Exception):
    ...
    def __init__(self,message = ''):
        self.__message = message

    def __str__(self):
        return f'{self.__message}'


def test01():
    ...
    try:
        ...
        age = 10 / 0
    except Exception as e:
        raise MyException(e)
    finally:
        print('111')


if __name__ == '__main__':
    ...
    try:
        test01()
    except MyException as e:
        print(e)
